package com.suse.lhw.hms.authserver;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan(basePackages = "com.suse.lhw.hms.authserver.*")
//加入exclude=。。。。取消默认数据源的配置
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class AuthserverApplication {

    private static final Logger logger = LoggerFactory.getLogger(AuthserverApplication.class);

    public static void main(String[] args) {
        logger.info("开始启动");
        SpringApplication.run(AuthserverApplication.class, args);
    }
}
